/* Copyright 2012 Dustin Mitchell <dmmitche [at] gmail [dot] com>
 *
 * Licensed under the GPLv3.  See included LICENSE.txt for full details.
 */

#ifndef __CLOCK__
#define __CLOCK__

enum clock_module
{
  CLOCK_NONE = -1,
  CLOCK_I2C1 = 0x48,
  CLOCK_I2C2 = 0x44,
  CLOCK_UART1 = 0x6c,
  CLOCK_UART2 = 0x70,
  CLOCK_UART3 = 0x74,
  CLOCK_UART4 = 0x78,
  CLOCK_UART5 = 0x38,
  CLOCK_EPWMSS0 = 0xd4,
  CLOCK_EPWMSS1 = 0xcc,
  CLOCK_EPWMSS2 = 0xd8
};

int clock_init ();

int clock_is_inited ();

int clock_enable (enum clock_module mod);

int clock_disable (enum clock_module mod);

#endif /* __CLOCK__ */
